/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __MAP_CHUNK_H__
#define __MAP_CHUNK_H__

#include "AdtFile.h"

namespace PQGame
{
	class MapChunk
	{
	public:
		MapChunk(int index,AdtFile* file,int col,int row);
		void initTerrainChunk();
		inline float* getHeights()
		{
			return _heights;
		}
	private:
		AdtFile* _file;
		int _index;
		int _col;
		int _row;
		MapChunkHeader* _header;

		int _areaId;
		int _xbase;
		int _ybase;
		int _zbase;

		float _heights[9*9];
	};
}

#endif
